<%@ page contentType="text/html;charset=UTF-8" %> 
<%@ include file="/include.inc.jsp"%>
<c:import url="../../pager/pagerForm.jsp"></c:import>


<form method="post" rel="pagerForm" action="${ctx}/sysRemindConfig/list" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
   		<table class="searchContent">
			<tr>
				<td>
					配置名称：<input type="text" name=arg value="${vo.arg}"/>
				</td>
				
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
    </div>
</div>
</form>

<div class="pageContent">
<div class="panelBar">
		<ul class="toolBar">
		<shiro:hasPermission name="sysRemindConfig:add">
			<li><a class="add" href="#" onclick="hrefEdit_OnClick('${ctx}/sysRemindConfig/edit','-1')"><span>添加</span></a></li>
		</shiro:hasPermission>
		<shiro:hasPermission name="sysRemindConfig:del">
			<li><a class="delete" href="#" onclick="hrefDel_OnClick('${ctx}/sysRemindConfig/del','checkboxSysRemindConfigId')"  title="确定要删除吗?"><span>删除</span></a></li>
		</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138" id="table1">
		<thead>
			<tr>
				<th width="40" align="center">
					<input type="checkbox" name="all" onclick="checkAll(this,'checkboxSysRemindConfigId')" title="全选"/>
				</th>
				<th width="50">操作</th>
				<th>配置名称</th>
				<th>提醒方式</th>
				<th>消息类型</th>
				<th>SqlMapID</th>
				<th>查看地址</th>
				<th>更新频率(天)</th>
				<th>是否提醒每个用户</th>
				<th>提醒用户</th>
				<th>提醒部门</th>
				<th>提醒岗位</th>
				<th>提醒角色</th>
				<th>最后更新时间</th>
				<th>标题</th>
				<th>消息内容</th>
				<th>返回结果替换格式</th>
				<th>返回结果类型</th>
				<th>备注</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${sysRemindConfiglist}" var="sysRemindConfig">
				<tr target="sid_sysRole" rel="${sysRole.id}">
					<td align="center">
                     	<input type="checkbox" onclick="checkbox_onclick(this)" name="checkboxSysRemindConfigId" value="${sysRemindConfig.id}"/>
                	</td>
					<td>
						<shiro:hasPermission name="sysRemindConfig:edit">
						<a class="general" href="#" onclick="hrefEdit_OnClick('${ctx}/sysRemindConfig/edit','${sysRemindConfig.id}')">修改</a>
						</shiro:hasPermission>
					</td>
					<td>${sysRemindConfig.configName}</td>
					<td>${sysRemindConfig.remindName}</td>
					<td>${sysRemindConfig.typeName}</td>
					<td>${sysRemindConfig.sqlMapID}</td>
					<td>${sysRemindConfig.showUrl}</td>
					<td>${sysRemindConfig.frequency}</td>
					<td>
						<c:choose> 
							<c:when test="${sysRemindConfig.isRemindAllUsers == 0}">不是</c:when>
							<c:when test="${sysRemindConfig.isRemindAllUsers == 1}">是</c:when>
							<c:otherwise></c:otherwise>
						</c:choose>
					</td>
					<td>${sysRemindConfig.remindUsers}</td>
					<td>${sysRemindConfig.remindBumen}</td>
					<td>${sysRemindConfig.remindPost}</td>
					<td>${sysRemindConfig.remindRole}</td>
					<td>${sysRemindConfig.lastTime}</td>
					<td>${sysRemindConfig.titleStr}</td>
					<td>${sysRemindConfig.messageContent}</td>
					<td>${sysRemindConfig.resultGsh}</td>
					<td>
						<c:choose> 
							<c:when test="${sysRemindConfig.resultType == 0}">数字</c:when>
							<c:when test="${sysRemindConfig.resultType == 1}">字符</c:when>
							<c:when test="${sysRemindConfig.resultType == 2}">结果集</c:when>
							<c:otherwise></c:otherwise>
						</c:choose>
					</td>
					<td>${sysRemindConfig.remarks}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
    <c:import url="../../pager/panelBar.jsp"></c:import>
</div>